﻿@model Model.goods
@{
    ViewBag.Title = Model.goodName;
}
<div class="smaller-container">
    <div class="miniNavWraper">
        <span>首页&nbsp;</span><span class="iconfont icon-you">&nbsp;饰品&nbsp;</span><span class="iconfont icon-you">&nbsp;@Model.goodName&nbsp;</span>
    </div>
    <div class="details-wrapper">
        <div class="detail-pic">
            <div class="pic-bac">
                <img src="~/Content/images/@Model.goodImage" />
            </div>

        </div>
        @using (Html.BeginForm("Orders", "Store", FormMethod.Post))
        {
            <div class="detail-count">
                <h1>@Model.goodName</h1>
                <p>
                    <span>
                        <label>品质 |</label>
                        隐秘
                    </span>
                    <span>
                        <label>类别 |</label>★
                    </span>
                    <span>
                        <label>类型 |</label>
                        @Model.goodType.typeName
                    </span>
                </p>
                <div class="line"></div>
                <div class="detail-price">
                    <span>
                        <label>
                            参考价格
                            ¥ <strong>@Model.goodprice</strong>
                        </label>
                    </span>
                    <label>购买数量</label><input class="num" name="num" type="number" min="0" value="1" style="text-align:center" />
                    <div class="right">
                        <input type="hidden" name="userid" value="@Session["UserID"]" />
                        <input type="hidden" name="GoodID" value="@Model.ID" />
                        <button class="sc" id="@Model.ID" user="@Session["UserID"]">加入购物车</button>
                        <button class="gm">立即购买</button>
                    </div>
                </div>
            </div>
        }


    </div>
    <div class="recommend">
        <div class="sec-title">
            <h2 id="tj">相关推荐</h2>
            <h2 id="pl">商品评论</h2>
        </div>
        <div id="box-container">
             @{Html.RenderAction("RecommendPatialView", "Store", new { });}
        </div>
    </div>
</div>
@section css{
    <link href="~/Content/css/iconfont.css" rel="stylesheet" />
    <link href="~/Content/css/miniWrapper.css" rel="stylesheet" />
    <link href="~/Content/css/GoodDetails.css" rel="stylesheet" />
}

@section scripts{
    <script src="~/Scripts/jquery-3.3.1.js"></script>
    <script src="~/Scripts/GoodDetails.js"></script>
}